-- https://github.com/nvim-tree/nvim-tree.lua
-- https://github.com/ms-jpq/chadtree

return {
	"nvim-neo-tree/neo-tree.nvim",
	branch = "v3.x",
	close_if_last_window = true,
	dependencies = {
		"nvim-lua/plenary.nvim",
		"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
		"MunifTanjim/nui.nvim",
		-- {"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information
	},
	lazy = false, -- neo-tree will lazily load itself
	---@module "neo-tree"
	---@type neotree.Config?
	opts = {
		-- fill any relevant options here
	},
	keys = {
		{ "<leader>f", group = "file", desc = "File" },
		{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find File", mode = "n" },
		{
			"<leader>ft",
			"<cmd>Neotree<cr>",
			desc = "Toggle NeoTree",
			mode = "n",
		},
	},
}
